package cn.lanca.gof16_20._18observer.case1;

/**
 * //具体观察者类：学生事件监听器
 */
public class StuEventListener implements BellEventListener {


    public void heardBell(RingEvent e) {
        if (e.isSound()) {
            System.out.println("同学们，上课了...");
        } else {
            System.out.println("同学们，下课了...");
        }
    }
}
